#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
typedef struct girlfriend
{
	char name[20];
	int age;
	char habit[20];
}girlfrend;

void print1(girlfrend y)
{
	printf("%s %d %s\n", y.name, y.age, y.habit);
}

void print2(girlfrend *p)
{
	printf("%s %d %s\n", (*p).name, (*p).age, (*p).habit);
	printf("%s %d %s\n", p->name, p->age, p->habit);
}


int main()
{
	girlfrend z = { "xh",19,"singing,studying" };
	print1(z);
	print2(&z);
	return 0;
}